DEMO: A function with parameters is a function that creates variables that can only be used within the function!
You must provide arguments (values) for these variables (in the correct order!) when you call the function.
- Click Run to see a function with parameters. Follow the onstage directions to complete the demo.
- At the end of the demo, you will be asked to add a call line with arguments to the code.
- Click Submit and Next to answer the questions about function parameters in the next activity.
To navigate the page using the TAB key, first press ESC to exit the code editor.